home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 21 / AACD 21.iso / AACD / Utilities / Ghostscript / src / gsalphac.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-01-01  |  2.0 KB  |  66 lines

  1. /* Copyright (C) 1997 Aladdin Enterprises.  All rights reserved.
  2.   
  3.   This file is part of AFPL Ghostscript.
  4.   
  5.   AFPL Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author or
  6.   distributor accepts any responsibility for the consequences of using it, or
  7.   for whether it serves any particular purpose or works at all, unless he or
  8.   she says so in writing.  Refer to the Aladdin Free Public License (the
  9.   "License") for full details.
  10.   
  11.   Every copy of AFPL Ghostscript must include a copy of the License, normally
  12.   in a plain ASCII text file named PUBLIC.  The License grants you the right
  13.   to copy, modify and redistribute AFPL Ghostscript, but only under certain
  14.   conditions described in the License.  Among other things, the License
  15.   requires that the copyright notice and this notice be preserved on all
  16.   copies.
  17. */
  18.  
  19. /*$Id: gsalphac.h,v 1.2 2000/09/19 19:00:25 lpd Exp $ */
  20. /* Alpha-compositing interface */
  21.  
  22. #ifndef gsalphac_INCLUDED
  23. #  define gsalphac_INCLUDED
  24.  
  25. #include "gscompt.h"
  26.  
  27. /*
  28.  * Define the compositing operations.  These values must match the ones in
  29.  * dpsNeXT.h.
  30.  */
  31. typedef enum {
  32.     composite_Clear = 0,
  33.     composite_Copy,
  34.     composite_Sover,
  35.     composite_Sin,
  36.     composite_Sout,
  37.     composite_Satop,
  38.     composite_Dover,
  39.     composite_Din,
  40.     composite_Dout,
  41.     composite_Datop,
  42.     composite_Xor,
  43.     composite_PlusD,
  44.     composite_PlusL,
  45. #define composite_last composite_PlusL
  46.     composite_Highlight,    /* (only for compositerect) */
  47. #define compositerect_last composite_Highlight
  48.     composite_Dissolve        /* (not for PostScript composite operators) */
  49. #define composite_op_last composite_Dissolve
  50. } gs_composite_op_t;
  51.  
  52. /*
  53.  * Define parameters for alpha-compositing.
  54.  */
  55. typedef struct gs_composite_alpha_params_s {
  56.     gs_composite_op_t op;
  57.     float delta;        /* only for Dissolve */
  58. } gs_composite_alpha_params_t;
  59.  
  60. /* Create an alpha-compositing object. */
  61. int gs_create_composite_alpha(P3(gs_composite_t ** ppcte,
  62.                  const gs_composite_alpha_params_t * params,
  63.                  gs_memory_t * mem));
  64.  
  65. #endif /* gsalphac_INCLUDED */
  66.